package com.hsd.netty.client.proxy;

import com.hsd.netty.client.common.NettyMessage;
import io.netty.channel.ChannelHandlerContext;
import org.springframework.stereotype.Component;

/**
 * @author s.he
 * on 2020/6/9
 */
@Component
public class ChannelProxy {

    public void sendMessage(ChannelHandlerContext ctx, NettyMessage nettyMessage) {
        ctx.writeAndFlush(nettyMessage);
    }
}
